import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
    base: './',
    plugins: [vue()],
    server: {
        proxy: {
            '/api': {
                // target: 'http://47.115.225.243:8080/',
                target:'http://localhost:80/',
                changeOrigin: true,
                ws: true,
                rewrite: (path) => path.replace(/^\/api/, '')
            },
        },
    },
})

